<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class RcUser extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'rc_user';

    protected $fillable = ['id', 'name','open_id','head_img','luck_sum','login_time','deleted_at','created_at', 'updated_at','insert_time'];

    public function prize()
    {
        return $this->hasMany(PrizeUser::class,'open_id','user_openid');
    }

}
